package com.ecoolex.chinadutyfree.retailer.core.mapper;

import com.ecoolex.chinadutyfree.retailer.entity.DirectMailGoodsOrderDetail;
import com.ecoolex.chinadutyfree.retailer.entity.DirectMailGoodsOrderDetailExample;
import com.ecoolex.framework.common.annotation.Description;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface DirectMailGoodsOrderDetailMapper {
    long countByExample(DirectMailGoodsOrderDetailExample example);

    int deleteByExample(DirectMailGoodsOrderDetailExample example);

    int deleteByPrimaryKey(Integer detailId);

    int insert(DirectMailGoodsOrderDetail record);

    int insertSelective(@Param("record") DirectMailGoodsOrderDetail record, @Param("selective") DirectMailGoodsOrderDetail.Column ... selective);

    DirectMailGoodsOrderDetail selectOneByExample(DirectMailGoodsOrderDetailExample example);

    List<DirectMailGoodsOrderDetail> selectByExample(DirectMailGoodsOrderDetailExample example);

    DirectMailGoodsOrderDetail selectByPrimaryKey(Integer detailId);

    DirectMailGoodsOrderDetail selectByPrimaryKeyWithLogicalDelete(@Param("detailId") Integer detailId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") DirectMailGoodsOrderDetail record, @Param("example") DirectMailGoodsOrderDetailExample example, @Param("selective") DirectMailGoodsOrderDetail.Column ... selective);

    int updateByExample(@Param("record") DirectMailGoodsOrderDetail record, @Param("example") DirectMailGoodsOrderDetailExample example);

    int updateByPrimaryKeySelective(@Param("record") DirectMailGoodsOrderDetail record, @Param("selective") DirectMailGoodsOrderDetail.Column ... selective);

    int updateByPrimaryKey(DirectMailGoodsOrderDetail record);

    int batchInsert(@Param("list") List<DirectMailGoodsOrderDetail> list);

    int batchInsertSelective(@Param("list") List<DirectMailGoodsOrderDetail> list, @Param("selective") DirectMailGoodsOrderDetail.Column ... selective);

    int logicalDeleteByExample(@Param("example") DirectMailGoodsOrderDetailExample example);

    int logicalDeleteByPrimaryKey(Integer detailId);
}